Set Display Text of OLED Screen on the Specified Position
Function:
magicbox.set_oled_pos_text(port, n, m, text)Description: set the text displayed on Line n and Row m of OLED screen. The OLED screen has four lines and 15 rows
Required parameter:
- port: controller port. data type: int, range: 1~6
- n: number of lines. data type: int, range: 1~4. When the set value exceeds the line range, the Line 1 and Row 1 are displayed by default.
- m: number of rows. data type: int, range: 1~16
- text: text content. data type: str text content: 1. specific symbols; 2. numbers, English letters
- Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magicbox.set_oled_pos_text(port=1, n=1, m=1, text="hello")Set the text displayed on Line 1 and Row 1 of OLED screen connected to port 1 of controller as "hello".